//
//  HJPopMenuController.h
//  KaiChat
//
//  Created by lx on 2023/10/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSUInteger, HJPopMenuType) {
    HJPopMenuTypeCopy,
    HJPopMenuTypeCancelTop,
    HJPopMenuTypeTop,
    HJPopMenuTypeMute,
    HJPopMenuTypeUnmute,
    HJPopMenuTypeDelete,
    HJPopMenuTypeAddFriend,
    HJPopMenuTypeCreateGroup,
    HJPopMenuTypeNewsFollow,
    HJPopMenuTypeNewsUnFollow,
    HJPopMenuTypeNewsHiden,
    HJPopMenuTypeNewsDelete,
};


@interface HJPopMenuController : UIViewController

@property (nonatomic, assign) CGRect sourceRect;
@property (nonatomic, copy) NSString *controllerName;
@property (nonatomic, assign) CGFloat offsetY;//默认是弹出的顶部和source的centerY, 可以设置上下便偏移
- (HJPopMenuController *)initWithTypes:(NSArray *)types;
- (void)showInController:(UIViewController *)controller;
@property (nonatomic, copy) void (^didSelectItemBlock)(HJPopMenuType type);
@property (nonatomic, copy) void (^dismissBlock)(void);

@end

NS_ASSUME_NONNULL_END
